﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T.Basic.Repository.Migrations
{
    /// <inheritdoc />
    public partial class 修改货主地址 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "CargoOwnerAddress",
                table: "CargoOwner",
                newName: "StartingProvince");

            migrationBuilder.AddColumn<string>(
                name: "StartingCity",
                table: "CargoOwner",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StartingCounty",
                table: "CargoOwner",
                type: "nvarchar(max)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "StartingCity",
                table: "CargoOwner");

            migrationBuilder.DropColumn(
                name: "StartingCounty",
                table: "CargoOwner");

            migrationBuilder.RenameColumn(
                name: "StartingProvince",
                table: "CargoOwner",
                newName: "CargoOwnerAddress");
        }
    }
}
